package com.ctsi.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 员工附属机构岗位表实体类
 *
 * @version 1.0
 * @author: wang xiao xiang
 * @date: 2021/8/9 16:26
 */
@Data
@TableName("mars_sys_emp_ext_org_pos")
@ApiModel(value = "EmpExtOrgPos对象", description = "员工附属机构岗位表")
@JsonIgnoreProperties(ignoreUnknown = true)
public class EmpExtOrgPos implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 员工id
     */
    @ApiModelProperty(value = "员工id")
    private Long empId;
    /**
     * 机构id
     */
    @ApiModelProperty(value = "机构id")
    private Long orgId;
    /**
     * 岗位id
     */
    @ApiModelProperty(value = "岗位id")
    private Long posId;
}
